package com.globalwave.filemanage.entity;

import java.sql.Timestamp;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;


import org.hibernate.annotations.GenericGenerator;

import com.globalwave.common.entity.Catalog;


/**
 *@Transient
 * @author Virgil.Chan
 */
@Entity
@Table(name = "FM_FOLDER")
public class Folder extends Catalog {

    
    
    @Id
    @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="increment")
    @GenericGenerator(name="FM_FOLDER_SEQ", strategy = "increment")
	private Long catalog_id  ;
    protected Long pro_catalog_id ;
    
    protected Long root_id  ;
    protected String name_  ;
    protected String desc_ ;
    protected Boolean is_folder ;
    protected Integer level_ ;
    protected Integer index_ ;

    private Timestamp created_on ;
    private Timestamp update_on ;

    private String created_by ;
    private String update_by ;
    
    private Long user_id ;
    
    private String path_ ;
    
    public Long getCatalog_id() {
        return catalog_id;
    }
	public void setCatalog_id(Long catalog_id) {
		this.catalog_id = catalog_id;
	}
	public Timestamp getCreated_on() {
		return created_on;
	}
	public void setCreated_on(Timestamp created_on) {
		this.created_on = created_on;
	}
	public Timestamp getUpdate_on() {
		return update_on;
	}
	public void setUpdate_on(Timestamp update_on) {
		this.update_on = update_on;
	}
	public String getCreated_by() {
		return created_by;
	}
	public void setCreated_by(String created_by) {
		this.created_by = created_by;
	}
	public String getUpdate_by() {
		return update_by;
	}
	public void setUpdate_by(String update_by) {
		this.update_by = update_by;
	}
	public Long getUser_id() {
		return user_id;
	}
	public void setUser_id(Long user_id) {
		this.user_id = user_id;
	}
	public String getPath_() {
		return path_;
	}
	public void setPath_(String path_) {
		this.path_ = path_;
	}
    
}
